function checkjava(){
if (navigator.javaEnabled() < 1){
alert("Ваш браузер не поддерживает JavaScript, который необходим для просмотра этой страницы.");
}
}
function preload_img()
{
var img_list = preload_img.arguments;
if (document.preloadlist == null)
document.preloadlist = new Array();
var top = document.preloadlist.length;
for (var i=0; i < img_list.length-1; i++) {
document.preloadlist[top+i] = new Image;
document.preloadlist[top+i].src = img_list[i+1];
}
}
function change_img_src(name, nsdoc, rpath, preload)
{
var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
if (name == '')
return;
if (img) {
img.altsrc = img.src;
img.src = rpath;
}
}
function restore_img_src(name, nsdoc)
{
var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
if (name == '')
return;
if (img && img.altsrc) {
img.src = img.altsrc;
img.altsrc = null;
}
}
//function ws(msg)
//{
//window.status=msg
//}
function rollover(cell, classname) {
if (document.all || document.getElementById) {
cell.classBackup = cell.className;
cell.className = classname;
}
}
function rollout(cell)
{
if (document.all || document.getElementById) {
cell.className = cell.classBackup;
}
}
function link_css()
{
if (screen.width > 1279 )
document.write("");
else if (screen.width > 1023 )
document.write("");
else if (screen.width > 799 )
document.write("");
else
alert('Для корректного отображения страницы установите разрешение экрана Вашего монитора не менее чем 800х600 точек и перезагрузите страницу');
}
function elink_css()
{
if (screen.width > 1279 )
document.write("");
else if (screen.width > 1023 )
document.write("");
else if (screen.width > 799 )
document.write("");
else
alert('For correctly view this page change screen resolution min. 800x600 and reload page ');
}
function copy()
{
document.write("© 2005-2008. Великоустюгский историко – архитектурный и художественный музей – заповедник
Любое копирование материалов сайта возможно исключительно с разрешения владельца");
}
function ecopy()
{
document.write("© 2005-2008. State Historical Architectural and Art Museum of Velikij Ustjug
With any reproduction of materials we ask to refer to the given source");
}
function alfa(name, inc)
{
var img = eval(name);
img.filters.alpha.opacity+=inc;
}
function disableSelection(target)
{
if (typeof target.onselectstart!="undefined")
target.onselectstart=function(){return false}
else if (typeof target.style.MozUserSelect!="undefined")
target.style.MozUserSelect="none"
else
target.onmousedown=function(){return false}
target.style.cursor = "default"
}